package lesson06;

public class People {
    static{
        System.out.println("A People静态块");
    }
    {
        System.out.println("B People实例块");
    }
    private String name;
    public People(String name){
        this.name = name;
        System.out.println("C 父类构造方法");
    }
    public void intro(){
        System.out.println("我的名字叫：" + name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
